package grape.workflow.rest.form.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.flowable.form.model.Option;

import java.util.List;
import java.util.Map;

/**
 * Created by yangwei
 * Created at 2020/7/1 20:04
 */
@Data
@ApiModel(value="关联/外置表单数据响应对象")
public class RelationFormVo {

    @ApiModelProperty("id,属性名")
    private String id;

    @ApiModelProperty("名称/标签")
    private String name;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("值")
    private Object value;

    @ApiModelProperty("是否必填")
    private Boolean isRequired;

    @ApiModelProperty("是否只读")
    private Boolean isReadOnly;

    @ApiModelProperty(value = "是否覆盖id属性",notes = "如果为true那么name将作为id")
    private Boolean isOverrideId;

    @ApiModelProperty("placeholder")
    private String placeholder;

    @ApiModelProperty("额外参数")
    private Map<String, Object> params;

    @ApiModelProperty("额外参数")
    private List<Option> options;
}
